home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / printing / magicfil.2 / magicfilter-1.2.tar / magicfilter-1.2 / Makefile.in < prev    next >
Makefile  |  1995-03-28  |  2KB  |  86 lines

  1. #
  2. # Makefile for the lpr/lpd magic filter
  3. #
  4. # Copyright ⌐ 1995 Yggdrasil Computing, Inc
  5. #
  6.  
  7. #
  8. # Define the following to suit your taste
  9.  
  10. srcdir = @srcdir@
  11. VPATH = @srcdir@
  12.  
  13. prefix = @prefix@
  14. exec_prefix = @exec_prefix@
  15. bindir = ${exec_prefix}/bin
  16. mansec=8
  17. mandir = ${prefix}/man/man${mansec}
  18.  
  19. CC = @CC@
  20. CFLAGS = @CFLAGS@
  21. LDFLAGS = @LDFLAGS@
  22. LIBS = @LIBS@
  23. RM = rm -f
  24. SED = sed
  25. INSTALL = @INSTALL@
  26. INSTALL_EXEC = @INSTALL_PROGRAM@
  27. INSTALL_DATA = @INSTALL_DATA@
  28.  
  29. #
  30. # These defines control the sending of mail notices to people who submit
  31. # bad jobs (PostScript to non-PS printers, or trying to print binaries.)
  32. #
  33. # This may not work if the hostname lpd knows about is not necessary a
  34. # valid mail address (for example, if you can submit print jobs from
  35. # non-mailer machines without MX records).  If so, define -DNOMAIL.
  36. #
  37. # -DNOMAIL        Disable sending of rejection mail notices 
  38. # -DSENDMAIL="path"    Where is your mail transport agent?
  39. # -DBANG_ADDRESS    To send to "host!user" instead of "user@host"
  40. #
  41. # If <paths.h> exist and contains _PATH_SENDMAIL, it will be used unless
  42. # overridden here
  43. #
  44. SYSOPT=
  45.  
  46. .c.o:
  47.     ${CC} ${CFLAGS} ${SYSOPT} -c $<
  48.  
  49. .PHONY: all filters clean distclean install install_filters
  50.  
  51. OBJS = magicfilter.o parseconfig.o loadconfig.o
  52.  
  53. all: magicfilter magicfilter.man filters
  54.  
  55. filters:
  56.     cd filters; make
  57.  
  58. install: magicfilter magicfilter.man
  59.     ${INSTALL_EXEC} magicfilter ${bindir}/magicfilter
  60.     ${INSTALL_DATA} magicfilter.man ${mandir}/magicfilter.${mansec}
  61.  
  62. install_filters:
  63.     cd filters; make install
  64.  
  65. clean:
  66.     -cd filters; make clean
  67.     -${RM} magicfilter magicfilter.man *.o
  68.  
  69. distclean: clean
  70.     -cd filters; make distclean
  71.     -${RM} *~ Makefile config.cache config.log config.status config.h
  72.  
  73. magicfilter: ${OBJS}
  74.     ${CC} ${LDFLAGS} -o magicfilter ${OBJS} ${LIBS}
  75.  
  76. magicfilter.o: magicfilter.c magicfilter.h
  77.  
  78. parseconfig.o: parseconfig.c magicfilter.h
  79.  
  80. loadconfig.o: loadconfig.c magicfilter.h
  81.  
  82. magicfilter.man: magicfilter.man.in
  83.     ${SED} -e "s:XXX_BINDIR_XXX:${bindir}:g" < magicfilter.man.in | \
  84.     ${SED} -e "s:///*:/:g" > magicfilter.man
  85.